//2009/08/16 18:15:57
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class TriangleType
{
public:
    string type(int a, int b, int c)
    {
		if(a + b > c && a + c > b && b + c > a)
		{
			int s[3];
			s[0]=a; s[1]=b; s[2]=c;
			sort(s, s+3);
			if(s[0] * s[0] + s[1]*s[1] == s[2]*s[2]) return "RIGHT";
			else if(s[0] * s[0] + s[1]*s[1] < s[2]*s[2]) return "OBTUSE";
			else return "ACUTE";
		}
		return  "IMPOSSIBLE";
    }
};
